//
//  EredarheaderCollectionViewCell.m
//  HandWork
//
//  Created by 王阳阳 on 16/1/23.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "EredarheaderCollectionViewCell.h"

@implementation EredarheaderCollectionViewCell
-(void)dealloc
{
    [_img release];
    [super dealloc];
    
}
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //图片
        self.img = [[UIImageView alloc]init];
        [self.contentView addSubview:self.img];
        [_img release];
    }
    return self;
}
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    [super applyLayoutAttributes:layoutAttributes];
    self.img.frame = self.contentView.frame;//图片
    self.img.backgroundColor = [UIColor redColor];
 
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
